package homework33;

public class Client {
    public static void main(String[] args) {
        EventProcessing person1  = new Monitor("张三...");
        EventProcessing person2  = new PlatoonLeader("李四...");
        EventProcessing person3  = new BattalionCommander("王五...");

        person1.setSuccessor(person2);
        person2.setSuccessor(person3);

        Mission mission1  = new Mission("蜗牛",5);
        person1.hardMission(mission1);

        Mission mission2  = new Mission("蜗牛",30);
        person1.hardMission(mission2);

        Mission mission3  = new Mission("蜗牛",180);
        person1.hardMission(mission3);

        Mission mission4  = new Mission("蜗牛",300);
        person1.hardMission(mission4);
    }
}
